home *** CD-ROM | disk | FTP | other *** search
/ Young Minds / Young Minds Interactive CD-ROM.ISO / kriegspi / constant.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-06-30  |  1.3 KB  |  70 lines

  1. /*
  2.  * $Header: constants.h,v 1.3 87/05/19 18:48:05 schoch Exp $
  3.  */
  4.  
  5. /* These next two constants are system dependent */
  6.  
  7. /* file used for printing a file to the terminal (try /bin/pr) */
  8. #define        PRINT_FILE    "/usr/ucb/more"
  9. /* file where help will be kept */
  10. #define        HELP_FILE    "/usr/games/src/ks/help"
  11.  
  12. #define        ILLEGAL_PIECE    -1
  13. #define        ILLEGAL        -1
  14. #define        NOWAY        -2
  15. #define        AMBIGUOUS    -3
  16. #define        NOMOREPAWNTRIES    -4
  17.  
  18. #define        UNSET        2
  19. #define        RANDOM        3
  20. #define        NIL        0
  21. #define        MAXBUFF        100
  22.  
  23. #define        WHITE        0
  24. #define        BLACK        1
  25. #define        EMPTY        2
  26. #define        OFFBOARD    3
  27.  
  28. #define        PAWN        1
  29. #define        KING        2
  30. #define        KNIGHT        3
  31. #define        BISHOP        4
  32. #define        ROOK        5
  33. #define        QUEEN        6
  34.  
  35. #ifdef XKS
  36. #define        MESSAGE        0
  37. #define        OPPONENT    0
  38. #define        CHECK        1
  39. #define        LEGAL        2
  40. #define        INPUT        2
  41. #define        CAPTURE        3
  42. #define        TOMOVE        4
  43. #define        PAWNTRIES    5
  44. #define        MYCOLOR        6
  45. #define        CLOCK        7
  46. #define        PROMPT        8
  47. #else
  48. #define        MESSAGE        0
  49. #define        CHECK        1
  50. #define        LEGAL        2
  51. #define        CAPTURE        3
  52. #define        TOMOVE        4
  53. #define        PAWNTRIES    5
  54. #define        MYCOLOR        6
  55. #define        CLOCK        7
  56. #define        PROMPT        8
  57. #define        INPUT        9
  58. #define        OPPONENT    10
  59. #endif
  60.  
  61. #define        NOPTIONS    3
  62. #define        COLOR        0
  63. #define        ANNOUNCETAKES    1
  64. #define        ANNOUNCEPAWNS    2
  65.  
  66. /* states */
  67. #define        PLAYING        0
  68. #define        OVER        1    /* game over */
  69. #define        REVIEW        2    /* doing review */
  70.